<?php
    $upload_dir="data/";
    $file_name=isset($_GET['file'])?$_GET['file']:'';
   
    $fp=fopen($upload_dir.$file_name,"rb");
    header("Content-type:application/octet-stream");
    header('Content-disposition: attachment; filename="'.$file_name.'"');  
    header("Content-length:".filesize($upload_dir.$file_name));
    fpassthru($fp);
    fclose($fp);
    



 ?>